package com.vast.admin.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vast.admin.entity.Banner;
import com.vast.common.core.domain.entity.SysUser;
import com.vast.admin.entity.enums.QueryOrderEnum;

public interface BannerService extends IService<Banner> {


    IPage<Banner> getBannerList(Page<Banner> page, Integer type);

    int addBanner(SysUser manager, Banner banner);

    IPage<Banner> queryList(Page<Banner> page, boolean listMode, String queryItems, String orderField, QueryOrderEnum order);

    boolean delete(SysUser manager, Long[] ids);

    Banner info(SysUser manager, Long id);

    boolean addOrUpdate(SysUser manager, Banner banner);

}


